package com.tencent.sr.iris.basic.mp.dependency;

import com.alibaba.fastjson.JSONObject;
import com.tencent.sr.iris.basic.service.interfaces.client.QfCommonClient;
import com.tencent.sr.iris.basic.service.interfaces.request.QfCommonDataReportRequest;
import com.tencent.sr.rmall.common.primitive.HttpResult;
import javax.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class QwCommonDependency {

    @Resource
    private QfCommonClient qfCommonClient;

    /**
     * 区发通用接口
     *
     * @param request
     */
    public HttpResult<Object> commonDataReport(QfCommonDataReportRequest request) {
        HttpResult<Object> response = qfCommonClient.commonDataReport(request);
        log.info("QwNotifyDependency.commonDataReport response = {}", JSONObject.toJSONString(response));
        return response;
    }

}
